function getArticleByReading(size,index){
	var url = "/HyperIT/article/getArticleByRead";
	var parm = "size="+size+"&indexPageNum="+index+"&status=1";
	$.get(url,parm,function(data){
		if (data.serviceResult) {
			var list = data.resultParm.article_user;
			 showArticle(list);
		} else{
			messageTip(data.resultInfo);
		}
	});
}
function showArticle(list){
	for(var i = 0; i<list.length; i++){
		var tags = "";
		for(var j = 0; j<list[i].tag.length; j++){
			tags = tags + '<a href="'+getRealPath()+'/views/tag/thetag.html?'+list[i].tag[j].id+'"><span>'+list[i].tag[j].name+'</span></a>';
		}
		
		$(".article-items").append('<div class="article-item">'+
								'<div class="item-left">'+
									'<a href="'+getRealPath()+'/views/blog/theblog.html?'+list[i].userdetail.id+'">'+
									'<img src="'+getRealPath()+list[i].userdetail.head+'"/></a>'+
									'<span>'+list[i].userdetail.name+'</span>'+
								'</div>'+
								'<div class="item-right">'+
									'<div class="article-header">'+
										'<h1><a href="'+getRealPath()+'/views/article/thearticle.html?'+list[i].article.id+'">'+
										list[i].article.title+'</a></h1>'+
										'<span>发布时间：'+list[i].article.createtime.substr(0,16)+'</span>'+
									'</div>'+
									'<div class="article-info">'+
										'<p>'+list[i].article.info+'</p>'+
									'</div>'+
									'<div class="article-others">'+
										'<div class="tags">'+
											tags+
										'</div>'+
										'<div class="time-count">'+
											'<span>打赏：</span><i>'+list[i].article.reward+'</i>'+
											'<span>收藏：</span><i>'+list[i].article.collecting+'</i>'+
											'<span>阅读量：</span><i>'+list[i].article.reading+'</i>'+
										'</div>'+
									'</div>'+
								'</div>'+
							'</div>');
	}
}
